package components.base
{
	import mx.controls.CheckBox;
	
	import spark.components.IItemRenderer;
	
	import framework.LangMgr;
	
	import interfaces.IReset;
	
	public class BaseCheckBox extends CheckBox implements IReset, IItemRenderer
	{
		/**
		 * 国际化标识
		 */
		private var _locale:String;
		public function get locale():String
		{
			return _locale;
		}
		public function set locale(p_str:String):void
		{
			_locale = p_str;
			resourcesChanged();
		}
		
		public function BaseCheckBox()
		{
			super();
		}
		
		override public function stylesInitialized():void
		{
			super.stylesInitialized();
			styleName = "checkBox";
		}
		
		/**
		 * 实现国际化
		 */
		override protected function resourcesChanged():void
		{
			super.resourcesChanged();
			if(_locale)
				label = LangMgr.getResourceByLocaleKey(_locale);
		}
		
		public function dispose():void
		{
			
		}
		
		public function reset():void
		{
			selected = false;
		}
		
		public function get dragging():Boolean
		{
			// TODO Auto Generated method stub
			return false;
		}
		
		public function set dragging(value:Boolean):void
		{
			// TODO Auto Generated method stub
			
		}
		
		public function get itemIndex():int
		{
			// TODO Auto Generated method stub
			return 0;
		}
		
		public function set itemIndex(value:int):void
		{
			// TODO Auto Generated method stub
			
		}
		
		public function get showsCaret():Boolean
		{
			// TODO Auto Generated method stub
			return false;
		}
		
		public function set showsCaret(value:Boolean):void
		{
			// TODO Auto Generated method stub
			
		}
		
	}
}